From 348dc32c1948c67d7c99c0b74d9738cf9340bd2c Mon Sep 17 00:00:00 2001 From: robertl Date: Fri, 5 May 2006 22:48:02 +0000 Subject: [PATCH] Add automatic href generation to (most of) the formats for doc generation and Ron's new html chunkifier. --- Makefile.in | 14 +++++++++----- tools/mkcapabilities | 4 +++- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/Makefile.in b/Makefile.in index 62ad808d5..b51a87684 100644 --- a/Makefile.in +++ b/Makefile.in @@ -125,12 +125,16 @@ dep: (echo -n "internal_styles.c: mkstyle.sh " ; echo style/*.style ; /bin/echo -e '\t./mkstyle.sh > internal_styles.c || (rm -f internal_styles.c ; exit 1)' ) >> /tmp/dep echo Edit Makefile and bring in /tmp/dep -readme.html: readme.xml +$(WEB)/htmldoc/readme.html: readme.xml + xmlwf $< #check for well-formedness + xmllint --noout --valid $< #validate xsltproc --stringparam html.stylesheet \ - "http://www.gpsbabel.org/style3.css" \ - http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl \ - $< > $@ || rm $@ - cp readme.html $(WEB)/readme.xhtml + "http://www.gpsbabel.org/style3.css" \ + --stringparam base.dir "$(WEB)/htmldoc/" \ + --stringparam use.id.as.filename 1 \ + --stringparam root.filename "readme" \ + http://docbook.sourceforge.net/release/xsl/current/xhtml/chunk.xsl \ + $< tools/mkcapabilities readme.txt: readme.html diff --git a/tools/mkcapabilities b/tools/mkcapabilities index af3a2d955..9eae08131 100755 --- a/tools/mkcapabilities +++ b/tools/mkcapabilities @@ -3,7 +3,8 @@ function getcap(type, cap, sname, lname) { if (type == "internal") return print "" print "" lname "" - print "" sname "" + + print " " sname "" # This is bad... printf "" @@ -25,5 +26,6 @@ function getcap(type, cap, sname, lname) { } print "" } + getcap($1, $2, $3, $5) ' > ../babelweb/capabilities.inc > ../babelweb/capabilities.inc -- 2.30.2